package net.sppan.base.service.impl;

import net.sppan.base.dao.IMgCodeDao;
import net.sppan.base.dao.support.IBaseDao;
import net.sppan.base.entity.mgEntity.MgCode;
import net.sppan.base.service.IMgCodeService;
import net.sppan.base.service.support.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户账户表  服务实现类
 * </p>
 *
 * @author SPPan
 * @since 2016-12-28
 */
@Service
public class MgCodeServiceImpl extends BaseServiceImpl<MgCode, Integer> implements IMgCodeService {

	@Autowired
	private IMgCodeDao MgCodeDao;


	@Override
	public IBaseDao<MgCode, Integer> getBaseDao() {
		return this.MgCodeDao;
	}

	@Override
	public MgCode findByCode(String code) {
		return MgCodeDao.findByCode(code);
	}

	@Override
	public MgCode findByCodeStatusAndCodeType(String codeStatus, String codeType) {
		return MgCodeDao.findByCodeStatusAndCodeType(codeStatus,codeType);
	}

	@Override
	public void saveOrUpdate(MgCode user) {

	}

	@Override
	public Page<MgCode> findAllByLike(String searchText, PageRequest pageRequest) {
		return null;
	}
}
